.class Lcom/peptalk/client/lbs/android/Telephone;
.super Ljava/lang/Object;
.source "Telephone.java"


# instance fields
.field public SimOperatorName:Ljava/lang/String;

.field public SimSerialNumber:Ljava/lang/String;

.field public deviceId:Ljava/lang/String;

.field public deviceSoftwareVersion:Ljava/lang/String;

.field public isNetworkRoaming:Z

.field public line1Number:Ljava/lang/String;

.field public model:Ljava/lang/String;

.field public networkCountryIso:Ljava/lang/String;

.field public networkOperator:Ljava/lang/String;

.field public networkOperatorName:Ljava/lang/String;

.field public networkType:I

.field public simCountryIso:Ljava/lang/String;

.field public simOperator:Ljava/lang/String;

.field public subscriberId:Ljava/lang/String;


# direct methods
.method constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x0

    .line 15
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 18
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    .line 19
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    .line 20
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    .line 21
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    .line 22
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    .line 23
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    .line 24
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    .line 25
    iput v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkType:I

    .line 26
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    .line 27
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    .line 28
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    .line 29
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimSerialNumber:Ljava/lang/String;

    .line 30
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    .line 31
    iput-boolean v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->isNetworkRoaming:Z

    .line 15
    return-void
.end method


# virtual methods
.method public jsonDevice()Lorg/json/JSONObject;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    const/16 v3, 0xff

    .line 167
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 169
    .local v0, json:Lorg/json/JSONObject;
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_0

    .line 170
    const-string v1, "id"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 172
    :cond_0
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_1

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_1

    .line 173
    const-string v1, "dsv"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 175
    :cond_1
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_2

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_2

    .line 176
    const-string v1, "line"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 178
    :cond_2
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_3

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_3

    .line 179
    const-string v1, "sid"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 181
    :cond_3
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_4

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_4

    .line 182
    const-string v1, "model"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 184
    :cond_4
    return-object v0
.end method

.method public jsonNetwork()Lorg/json/JSONObject;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    const/16 v3, 0xff

    .line 138
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 139
    .local v0, json:Lorg/json/JSONObject;
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_0

    .line 140
    const-string v1, "nci"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 142
    :cond_0
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_1

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_1

    .line 143
    const-string v1, "no"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 145
    :cond_1
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_2

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_2

    .line 146
    const-string v1, "non"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 149
    :cond_2
    const-string v1, "ntype"

    iget v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkType:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 151
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_3

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_3

    .line 152
    const-string v1, "sci"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 154
    :cond_3
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_4

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_4

    .line 155
    const-string v1, "so"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 157
    :cond_4
    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-lez v1, :cond_5

    iget-object v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    array-length v1, v1

    if-ge v1, v3, :cond_5

    .line 158
    const-string v1, "son"

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 161
    :cond_5
    const-string v1, "roaming"

    iget-boolean v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->isNetworkRoaming:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 163
    return-object v0
.end method

.method public reset()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x0

    .line 189
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    .line 190
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    .line 191
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    .line 192
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    .line 193
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    .line 194
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    .line 195
    iput v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkType:I

    .line 196
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    .line 197
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    .line 198
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    .line 199
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimSerialNumber:Ljava/lang/String;

    .line 200
    iput-object v0, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    .line 201
    iput-boolean v1, p0, Lcom/peptalk/client/lbs/android/Telephone;->isNetworkRoaming:Z

    .line 202
    return-void
.end method

.method public writeDeviceInfo(Ljava/io/ByteArrayOutputStream;)V
    .locals 7
    .parameter "baos"

    .prologue
    const/4 v6, 0x5

    const/16 v5, 0xff

    const/4 v4, 0x0

    .line 94
    const/4 v1, 0x0

    .line 95
    .local v1, number:I
    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 96
    .local v0, baosTemp:Ljava/io/ByteArrayOutputStream;
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_0

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_0

    .line 97
    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 98
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 99
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceId:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 100
    add-int/lit8 v1, v1, 0x1

    .line 102
    :cond_0
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_1

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_1

    .line 103
    invoke-virtual {v0, v6}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 104
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 105
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->deviceSoftwareVersion:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 106
    add-int/lit8 v1, v1, 0x1

    .line 108
    :cond_1
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_2

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_2

    .line 109
    const/4 v2, 0x6

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 110
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 111
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->line1Number:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 112
    add-int/lit8 v1, v1, 0x1

    .line 114
    :cond_2
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_3

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_3

    .line 115
    const/4 v2, 0x7

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 116
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 117
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->subscriberId:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 118
    add-int/lit8 v1, v1, 0x1

    .line 120
    :cond_3
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    if-eqz v2, :cond_4

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_4

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_4

    .line 121
    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 122
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 123
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->model:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 124
    add-int/lit8 v1, v1, 0x1

    .line 126
    :cond_4
    if-nez v1, :cond_5

    .line 134
    :goto_0
    return-void

    .line 130
    :cond_5
    invoke-virtual {p1, v6}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 131
    invoke-virtual {p1, v1}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 132
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v2

    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->size()I

    move-result v3

    invoke-virtual {p1, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0
.end method

.method public writeNetworkInfo(Ljava/io/ByteArrayOutputStream;)V
    .locals 7
    .parameter "baos"

    .prologue
    const/4 v6, 0x7

    const/16 v5, 0xff

    const/4 v4, 0x0

    .line 34
    const/4 v1, 0x0

    .line 35
    .local v1, number:I
    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 36
    .local v0, baosTemp:Ljava/io/ByteArrayOutputStream;
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_0

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_0

    .line 37
    const/4 v2, 0x3

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 38
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 39
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkCountryIso:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 40
    add-int/lit8 v1, v1, 0x1

    .line 42
    :cond_0
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_1

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_1

    .line 43
    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 44
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 45
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperator:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 46
    add-int/lit8 v1, v1, 0x1

    .line 48
    :cond_1
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_2

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_2

    .line 49
    const/4 v2, 0x5

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 50
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 51
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkOperatorName:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 52
    add-int/lit8 v1, v1, 0x1

    .line 55
    :cond_2
    const/4 v2, 0x6

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 56
    iget v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkType:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 57
    iget v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkType:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->networkType:I

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 58
    add-int/lit8 v1, v1, 0x1

    .line 60
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_3

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_3

    .line 61
    invoke-virtual {v0, v6}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 62
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 63
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->simCountryIso:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 64
    add-int/lit8 v1, v1, 0x1

    .line 66
    :cond_3
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    if-eqz v2, :cond_4

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_4

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_4

    .line 67
    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 68
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 69
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->simOperator:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 70
    add-int/lit8 v1, v1, 0x1

    .line 72
    :cond_4
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    if-eqz v2, :cond_5

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-lez v2, :cond_5

    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    if-ge v2, v5, :cond_5

    .line 73
    const/16 v2, 0x9

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 74
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 75
    iget-object v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-object v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->SimOperatorName:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 76
    add-int/lit8 v1, v1, 0x1

    .line 79
    :cond_5
    const/16 v2, 0xa

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 80
    iget-boolean v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->isNetworkRoaming:Z

    invoke-static {v2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    array-length v2, v2

    invoke-virtual {v0, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 81
    iget-boolean v2, p0, Lcom/peptalk/client/lbs/android/Telephone;->isNetworkRoaming:Z

    invoke-static {v2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    iget-boolean v3, p0, Lcom/peptalk/client/lbs/android/Telephone;->isNetworkRoaming:Z

    invoke-static {v3}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    array-length v3, v3

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    .line 82
    add-int/lit8 v1, v1, 0x1

    .line 84
    if-nez v1, :cond_6

    .line 91
    :goto_0
    return-void

    .line 88
    :cond_6
    invoke-virtual {p1, v6}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 89
    invoke-virtual {p1, v1}, Ljava/io/ByteArrayOutputStream;->write(I)V

    .line 90
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v2

    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->size()I

    move-result v3

    invoke-virtual {p1, v2, v4, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0
.end method
